/*
 * @(#)SyncService.java 2011-11-10
 *
 * Copyright 2011 北龙中网（北京）科技有限责任公司. All rights reserved.
 */
package cn.shangjia.shop.sync.service;

import cn.shangjia.common.mq.message.DbMessageAction;
import cn.shangjia.shop.exception.ShopSyncException;

/**
 * 同步服务接口.
 *
 * @author <a href="mailto:jinzhongze@knet.cn">jinzhongze</a>
 * @version 1.0, 2011-11-10 11:24:09
 * @since 1.0
 */
public interface SyncService {
	
	/**
	 *  同步.
	 * 
	 * @param action 同步指令
	 * @param id 数据表主键
	 * @throws ShopSyncException 同步异常
	 * @author <a href="mailto:jinzhongze@knet.cn">jinzhongze</a>
	 */
	void sync(DbMessageAction action, String id, String userid) throws ShopSyncException;
}
